package com.best.design.observer.step3.event.listener;

import com.best.design.observer.step3.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * MQ监听器
 */
public class MQEventListener implements EventListener {

	private Logger logger = LoggerFactory.getLogger(MQEventListener.class);

	@Override
	public void doEvent(LotteryResult result) {
		logger.info("记录用户 {} 摇号结果(MQ)：{}", result.getuId(), result.getMsg());
	}

}